import request from '@/utils/request'

// 用户详情
export function getUserDetail(params: any) {
    return request.get({ url: '/user.user/detail', params })
}
//调整用户钱包
export function adjustUserWallet(params: any) {
    return request.post({ url: '/user.user/adjustUserWallet', params })
}



// 用户列表
export function getUserList(params: any) {
    return request.get({ url: '/admin.auth.user/userList', params })
}

// 可切换团长列表
export function getCommunityList(params: any) {
    return request.get({ url: '/admin.auth.user/communityList', params })
}

// 切换团长确认
export function toggleCommunity(params: any) {
    return request.get({ url: '/admin.auth.user/toggleCommunity', params })
}

// 可切换代理列表
export function getAgentList(params: any) {
    return request.get({ url: '/admin.auth.user/agentList', params })
}

// 切换代理确认
export function toggleAgent(params: any) {
    return request.get({ url: '/admin.auth.user/toggleAgent', params })
}

// 用户编辑
export function userEdit(params: any) {
    return request.post({ url: '/admin.auth.user/userEdit', params })
}

// 充值类型
export function getRechargeType(params: any) {
    return request.post({ url: '/admin.auth.user/rechargeType', params })
}

// 充值
export function recharge(params: any) {
    return request.post({ url: '/admin.auth.user/recharge', params })
}

// 可赠送的优惠券
export function getCouponList(params: any) {
    return request.post({ url: '/admin.auth.user/couponList', params })
}

// 赠送优惠券
export function giftCoupon(params: any) {
    return request.post({ url: '/admin.auth.user/giftCoupon', params })
}

// 删除用户
export function delUser(params: any) {
    return request.post({ url: '/admin.auth.user/delUser', params })
}

// 解禁/禁用用户
export function forbiddenUser(params: any) {
    return request.post({ url: '/admin.auth.user/forbiddenUser', params })
}

// 用户优惠券管理
export function getUserCouponList(params: any) {
    return request.post({ url: '/admin.auth.user/couponAllList', params })
}

// 删除用户优惠券
export function delUserCoupon(params: any) {
    return request.post({ url: '/admin.auth.user/delUserCoupon', params })
}


// 用户投诉管理
export function getUserComplainList(params: any) {
    return request.post({ url: '/admin.auth.user/complainList', params })
}

// 投诉处理成功
export function complainHandle(params: any) {
    return request.post({ url: '/admin.auth.user/complainHandle', params })
}

// 用户地址管理
export function getUserAddressList(params: any) {
    return request.post({ url: '/admin.auth.user/addressList', params })
}

// 用户地址编辑
export function addressEdit(params: any) {
    return request.post({ url: '/admin.auth.user/addressEdit', params })
}

// 清除用户团长信息
export function clearCommunityInfo(params: any) {
    return request.post({ url: '/admin.auth.user/clearCommunityInfo', params })
}


// 禁用/解禁积分与提现功能(只有团长和代理显示此按钮))
export function redFeature(params: any) {
    return request.post({ url: '/admin.auth.user/redFeature', params })
}

// 用户签到信息列表
export function signLogList(params: any) {
    return request.post({ url: '/admin.auth.room/signLogList', params })
}
// 补发签到积分奖励
export function reissue(params: any) {
    return request.post({ url: '/admin.auth.room/reissue', params })
}
// 一键补发对应直播间积分
export function reissue_room(params: any) {
    return request.post({ url: '/admin.auth.room/reissue_room', params })
}

// 优惠券列表
export function couponList(params: any) {
    return request.post({ url: '/admin.auth.other/couponList', params })
}
// 券类型
export function couponType(params: any) {
    return request.post({ url: '/admin.auth.other/couponType', params })
}
// 优惠券详情
export function detailCoupon(params: any) {
    return request.post({ url: '/admin.auth.other/detailCoupon', params })
}
// 编辑优惠券信息
export function editCoupon(params: any) {
    return request.post({ url: '/admin.auth.other/editCoupon', params })
}
// 添加优惠券
export function addCoupon(params: any) {
    return request.post({ url: '/admin.auth.other/addCoupon', params })
}

// 兑换商品列表
export function couponGoods(params: any) {
    return request.post({ url: '/admin.auth.other/couponGoods', params })
}
// 快捷修改优惠券状态
export function stateCoupon(params: any) {
    return request.post({ url: '/admin.auth.other/stateCoupon', params })
}
// 可赠送优惠券
export function userCouponList(params: any) {
    return request.post({ url: '/admin.auth.user/couponList', params })
}
// 用户观看记录
export function lookTimeLog(params: any) {
    return request.post({ url: '/admin.auth.room/lookTimeLog', params })
}
// 补发签到信息
export function reissueSignLog(params: any) {
    return request.post({ url: '/admin.auth.room/reissueSignLog', params })
}
// 用户发积分记录
export function redLogList(params: any) {
    return request.post({ url: '/admin.auth.room/redLogList', params })
}
// 当前系统可用积分余额
export function redInfo(params: any) {
    return request.post({ url: '/admin.auth.room/redInfo', params })
}
// 后台充值积分
export function sysRecharge(params: any) {
    return request.post({ url: '/admin.auth.room/sysRecharge', params })
}

// 添加累计签到设置
export function addContinuousReward(params: any) {
    return request.post({ url: '/admin.auth.room/addContinuousReward', params })
}
// 累计签到详情
export function detailContinuousReward(params: any) {
    return request.post({ url: '/admin.auth.room/detailContinuousReward', params })
}
// 编辑累计签到设置
export function editContinuousReward(params: any) {
    return request.post({ url: '/admin.auth.room/editContinuousReward', params })
}
// 删除累计签到设置
export function decContinuousReward(params: any) {
    return request.post({ url: '/admin.auth.room/decContinuousReward', params })
}
// 累计签到列表
export function continuousRewardList(params: any) {
    return request.post({ url: '/admin.auth.room/continuousRewardList', params })
}
// 点名记录
export function clockList(params: any) {
    return request.post({ url: '/admin.auth.other/clockList', params })
}
// 用户积分兑换记录
export function exchangeList(params: any) {
    return request.post({ url: '/admin.auth.other/exchangeList', params })
}
// 点名详细记录
export function clockDetailList(params: any) {
    return request.post({ url: '/admin.auth.other/clockDetailList', params })
}

// 一键拉黑用户
export function batchUserStatus0(params: any) {
    return request.post({ url: '/admin.data_user.user/batchUserStatus0', params })
}


// 获取积分分页列表
export function getUserBalance4PageList(params: any) {
    return request.post({ url: '/admin.data_user.user/getUserBalance4PageList', params })
}

